<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/layouts/include/taglib.jsp" %>

<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta name="decorator" content="step"/>

    <style type="text/css">
        /*模态提示框样式  start*/
        .modal-backdrop {
            position: fixed;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            z-index: 1030;
            background-color: #FFFFFF;
        }

        .modal-backdrop.in {
            opacity: 0.2;
            filter: alpha(opacity=50);
        }

        /*模态提示框样式  end*/
	

    </style>
       <link rel="stylesheet" href="${ctx}/static/component/ztree/css/demo.css" type="text/css"> 
       <link rel="stylesheet" href="${ctx}/static/component/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css">
	 <script type="text/javascript">    	
        var memberArray = new Array();		//成员缓存
        var prjId = "${param.prjId}";		//项目id
        var GLOBAL_PRJTYPE;					//项目类型
        var GOBAL_CUST_NO = '<shiro:principal property="empNo"/>'; //当前用户名
        var GOBAL_CUST_ROLENO = '<shiro:principal property="roleNo"/>'; //当前用户角色
        var GOBAL_PRJ_ROLE; 				//当前项目角色
        var GOBAL_PRJ_NAME;
        var GLOBAL_PRJ;  					//当前项目信息
        //当前项目名称
       
    </script>
     <script>
		setting = {
				
				edit: {
					enable: true,
					showRemoveBtn: false,
					showRenameBtn: false
				},
				data : {
					 key:{
						name:"folderName"
					},
					simpleData : {
						enable : true,
						idKey : "uuid",
						pIdKey : "parentId",
					} 
				},
				callback: {
					beforeDrag: beforeDrag,
					beforeDrop: beforeDrop,
					onClick : zTreeOnClick,
					onDrop: zTreeOnDrop,//用于捕获节点拖拽操作结束的事件回调函数
					
				},
				
		
		};
		
		function zTreeOnClick(event, treeId, treeNode) {
		   if(treeNode.isParent){
			   
			   return;
		   }
		};
	
		settingRight = {
		   		view: {
					addHoverDom: addHoverDom,
					removeHoverDom: removeHoverDom,
					selectedMulti: true 
				},
				edit: {
				 	enable: true,
					showRemoveBtn: true,
					showRenameBtn: true, 
					editNameSelectAll: true,   
					removeTitle:"删除",
					renameTitle:"修改" 				
				},
				data : {
					key:{
						name:"folderName"
					},
					simpleData : {
						enable : true,
						idKey : "uuid",
						pIdKey : "parentId",						
					},
				},
				callback: {
					beforeDrag: beforeDrag,
					beforeDrop: beforeDrop,				
					beforeDrag: beforeDrag,
					beforeEditName: beforeEditName,
					beforeRemove: beforeRemove,
					beforeRename: beforeRename, 
				 	onRemove: onRemove,
					onRename: onRename,
					onDrop: zTreeOnDrop//用于捕获节点拖拽操作结束的事件回调函数
				},
				
		};
		var log, className = "dark";
		function beforeDrag(treeId, treeNodes) {
			return false;
		}
		

		function beforeEditName(treeId, treeNode) {				
			className = (className === "dark" ? "":"dark");
			showLog("[ "+getTime()+" beforeEditName ]&nbsp;&nbsp;&nbsp;&nbsp; " + treeNode.folderName);
			var zTree = $.fn.zTree.getZTreeObj("treeRight");

			zTree.selectNode(treeNode);
			//return Otod.Msg.confirm("进入节点 -- " + treeNode.name + " 的编辑状态吗？","编辑");
			
			return true;//confirm("进入节点 -- " + treeNode.folderName + " 的编辑状态吗？");
		}
		
		
		
		//删除提示框
		function beforeRemove(treeId, treeNode) {
				className = (className === "dark" ? "":"dark");
				showLog("[ "+getTime()+" beforeRemove ]&nbsp;&nbsp;&nbsp;&nbsp; " + treeNode.folderName);
				var zTree = $.fn.zTree.getZTreeObj("treeRight");
				zTree.selectNode(treeNode);
				//return Otod.Msg.confirm("确认删除 节点 -- " + treeNode.name + " 吗？");
				return confirm("确认删除 节点 -- " + treeNode.folderName + " 吗？");
		}

		//点击确认删除出现
		function onRemove(e, treeId, treeNode) {	
			/* 此处treeNode 为当前节点 */
		 
			var uuid = treeNode.uuid;
		     var str ='' ;
		     str = getAllChildrenNodes(treeNode,str);//所有叶子节点ID
		     deletFileOrFolder(uuid+str);
			showLog("[ "+getTime()+" onRemove ]&nbsp;&nbsp;&nbsp;&nbsp; " + treeNode.folderName);
		}






		//编辑名称提交
		function beforeRename(treeId, treeNode, newName, isCancel) {
			
			//判断如果是文件
			if(treeNode.folderType=="40010002"){
				//取到后缀名字
				var oldName = treeNode.folderName;
				//得到后缀名字
				var oldSuffixNumber  =  oldName.lastIndexOf(".");
				var oldSuffixName = oldName.substr(oldSuffixNumber);
				
				var newSuffixNumber =newName.lastIndexOf(".");
				
				var newSuffixName = newName.substr(newSuffixNumber);
				if(newSuffixNumber==-1){
					alert("请输入后缀名");
					return false;
				}
				if(oldSuffixName!=newSuffixName){
					alert("后缀名有误    请输入"+oldSuffixName+"后缀名");
					return false;
				}
			}else{
				
				var flag = true;
				var uuid=selectRepetitionFolderName(newName,treeNode.parentId);			
				if(uuid!=null){
				 	alert("文件夹名字重复");
					flag = false; 
				}
				return flag; 
			}

			className = (className === "dark" ? "":"dark");
			showLog((isCancel ? "<span style='color:red'>":"") + "[ "+getTime()+" beforeRename ]&nbsp;&nbsp;&nbsp;&nbsp; " + treeNode.folderName + (isCancel ? "</span>":""));
			if (newName.length == 0) {
				alert("节点名称不能为空.");
				var zTree = $.fn.zTree.getZTreeObj("treeRight");
				setTimeout(function(){zTree.editName(treeNode)}, 10);
				return false;
			}

			return true;
		}

		//保存的时候treeId目录id
		function onRename(e, treeId, treeNode, isCancel) {
			
			showLog((isCancel ? "<span style='color:red'>":"") + "[ "+getTime()+" onRename ]&nbsp;&nbsp;&nbsp;&nbsp; " + treeNode.name + (isCancel ? "</span>":""));
			addFolderOrFile(treeNode.uuid,$("#saveCfgStepId").val(),treeNode.folderType==""?"40010001":treeNode.folderType,treeNode.folderName,treeNode.parentId);
			
		}


		function updateChildNodes(node,zTree){	
		 	//判断是否有子节点						
			if(node.children!=undefined){
				for(var i=0;i<node.children.length;i++){
					//alert(nodes[i].children.folderType);
					/* if(nodes[i].folderType=="400"){
						nodes[i].iconSkin = nodes[i].iconSkin ? null : "pIcon01";
					} */
					eachChildNodes(node.children[i],zTree);
				}
			} 
			
		}


		function showRemoveBtn(treeId, treeNode) {
			 /*  return !treeNode.isFirstNode;  */
			
		}
		function showRenameBtn(treeId, treeNode) {
			/*  return !treeNode.isLastNode;  */
		} 


		function showLog(str) {		
			if (!log) log = $("#log");
			log.append("<li class='"+className+"'>"+str+"</li>");
			if(log.children("li").length > 8) {
				log.get(0).removeChild(log.children("li")[0]);
			}
		}

		//得到时间
		function getTime() {
			var now= new Date(),
			h=now.getHours(),
			m=now.getMinutes(),
			s=now.getSeconds(),
			ms=now.getMilliseconds();
			return (h+":"+m+":"+s+ " " +ms);
		}


		var newCount = 1;
		function addHoverDom(treeId, treeNode) {
			
			if(treeId != "treeLeft"){
				
				//如果是文件就不出现新增按钮
				if(treeNode.folderType=="40010002"){
					//Otod.Msg.confirm("不能在文件下增加目录");
					return;
				}
				
				 var sObj = $("#" + treeNode.tId + "_span");
				if (treeNode.editNameFlag || $("#addBtn_"+treeNode.tId).length>0) return;
				var addStr = "<span class='button add' id='addBtn_" + treeNode.tId
					+ "' title='新增' onfocus='this.blur();'></span>";
				sObj.after(addStr);
				var btn = $("#addBtn_"+treeNode.tId);
			
				if (btn) btn.bind("click", function(){
					var zTree = $.fn.zTree.getZTreeObj("treeRight"),
					isParent = true,
					nodes = zTree.getSelectedNodes(),
					treeNode = nodes[0];	
					if(treeNode==undefined||treeNode.folderType!="40010002"){
						treeNode = zTree.addNodes(treeNode, {uuid:getRadom(), parentId:treeNode.uuid, isParent:isParent, folderName:"文件夹" + (newCount++)});
						if (treeNode) {	
							zTree.editName(treeNode[0]);
						} else {
							alert("叶子节点被锁定，无法增加子节点");
						}
						
					}else{
						Otod.Msg.info("文件下不能新建文件夹");
					}
					
					
				}); 
			}		
		};


		function removeHoverDom(treeId, treeNode) {
			
			if(treeId != "treeLeft"){
				$("#addBtn_"+treeNode.tId).unbind().remove();
			}
		};


		function selectAll() {

			var zTree = $.fn.zTree.getZTreeObj("treeRight");
			zTree.setting.edit.editNameSelectAll =  $("#selectAll").attr("checked");
		}




		//拖拽前调用
		function beforeDrag(treeId, treeNodes) {

			if(treeId=="treeLeft"){
				for (var i=0,l=treeNodes.length; i<l; i++) {
					if(treeNodes[i].drag === false||treeNodes[i].folderType!="40010002"){
						return false;
					}
				}
				return true;	
			}else{
				for (var i=0,l=treeNodes.length; i<l; i++) {
					//弱类型比较
					if (treeNodes[i].drag === false){
						return false;
					}
				}
				return true;
			}
			
		}


		//拖拽后面调用
		function beforeDrop(treeId, treeNodes, targetNode, moveType){
			//判断拖拽的最终位置
			if(treeId=="treeLeft"){
				return false;
			}else{
				//如果是文件夹就不让拖动
				return targetNode ? targetNode.drop !== false : true;	
			}
		}
	
		//用于捕获节点拖拽操作结束的事件回调函数 从另外一个ul 变到 另一个ul
		function zTreeOnDrop(event, treeId, treeNodes, targetNode, moveType){
				//得到拖拽后所有数据
			var zTree = $.fn.zTree.getZTreeObj("treeRight");
			var nodes = zTree.getNodes();
			
			for(var i=0;i<nodes.length;i++){
				eachChildNodes(nodes[i],zTree);	
			}
			
			
		}


		//递归调用得到下面所有的数据
		function eachChildNodes(node,zTree){	
			
			addFolderOrFile(node.uuid,$("#saveCfgStepId").val(),node.folderType,node.folderName,node.parentId);
			//直接向后台添加数据
		 	//判断是否有子节点						
			if(node.children!=undefined){
				for(var i=0;i<node.children.length;i++){
					eachChildNodes(node.children[i],zTree);
				}
			} 
			
		}
    </script> 
	
	
	
</head>
<body>

    <div class="step-main padding-right-200">
        <div class="row">
            <div class="step-header" >
                <h1>
	                <i class="icon-caret-right"></i> 
	                <span id="setPrjName"></span> <br />
	                <small id="setprjStatus" style="color:red"></small>
                </h1>
                
                <div class="btn-group pull-right step-btn-create" >
                        <a href="#" class="btn btn-primary" onclick='addStep(this);return false;'>
                            <i class="icon-plus"></i>
                            新建阶段
                        </a>
                        <a href="#" class="btn btn-primary" onclick='insertStep(this);return false;'>
                            <i class="icon-plus"></i>
                            插入阶段
                        </a>

                       
                </div>
                <a href="#" class="btn-ace pull-right step-btn-create" onclick='importStep(this);return false;'>
                            <i class="icon-cog"></i>
                            阶段模版
                </a>
                <a href="step.jsp?prjId=${param.prjId}" class="btn-ace pull-right ">
                            <i class="icon-hand-left"></i>
                            任务列表
                </a>
                <a href="#" class="btn-ace pull-right project-btn" id="project-btn-submit">
                            <i class="icon-hand-left"></i>
                            提交审核
                </a>
                <a href="#" class="btn-ace pull-right project-btn-audit" id="project-btn-audit" onclick='auditProject(this);return false;'>
                            <i class="icon-hand-left"></i>
                            审核
                </a>
               
            </div>
        </div>

        <div class="step-content-cfg">
            <div class="col-xs-12" style="height:100%">
                <div class="steprow-cfg thin-scroll" id="stepRow">

                </div>
                <!-- /row -->
            </div>


            <div class="modal fade in" id="stepModen"><!-- class="modal fade" 添加效果 -->
                <div class="modal-dialog" style="width:250px;">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                            <h4 class="modal-title">新增阶段</h4>
                        </div>
                        <div class="modal-body">
                            <form class="form-horizontal" role="form" id="stepModen-form">
                                <div class="form-group">
                                	<div class="col-sm-offset-1 col-sm-10 input-group">
                                        <input type="hidden" name="uuid"/>
                                        <input type="hidden" name="prjId"/>
                                        <input type="text" name="stepName" placeholder="阶段名(长度小于14个字符)" class="col-sm-12" maxlength="14"/>
                                     </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-offset-1 col-sm-10 input-group">
                                        <input type="text" data-provide="datepicker"  name="startDate" placeholder="开始日期" class="form-control"/>
                                        <span class="input-group-addon">
											<i class="icon-calendar"></i>
										</span>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-offset-1 col-sm-10 input-group">
                                        <input type="text" data-provide="datepicker"  name="endDate" placeholder="结束日期" class="form-control"/>
                                        <span class="input-group-addon">
											<i class="icon-calendar"></i>
										</span>
                                    </div>
                                </div>
                                <div class="form-group" id="control-sort" style="display:none">
                                    <div class="col-sm-offset-1 col-sm-10 input-group">
                                        <input type="text" name="sort" placeholder="阶段序号" class="col-sm-12"/>
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                            <button type="button" class="btn btn-primary" id="stepModen-btn-save">保存</button>
                        </div>
                    </div>
                    <!-- /.modal-content -->
                </div>
                <!-- /.modal-dialog -->
            </div>
            <!-- /.modal -->
            
            <div class="modal fade in" id="audit-project"><!-- class="modal fade" 添加效果 -->
                <div class="modal-dialog" style="width:600px;">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                            <h4 class="modal-title">项目审核</h4>
                        </div>
                        <div class="modal-body">
                            <form class="form-horizontal" role="form" id="audit-project-form">
                                <div class="form-group">
                                	<label class="col-sm-2 control-label " for="projectName">项目名称 </label>
                                	<div class="col-sm-offset-1 col-sm-10 input-group">
                                        <input type="hidden" name="prjId"/>
                                        <input type="text" name="projectName"  class="col-sm-12" readonly="readonly"/>
                                     </div>
                                </div>
                                <div class="form-group">
                                	<label class="col-sm-2 control-label " for="comment">指导意见 </label>
                                    <div class="col-sm-offset-1 col-sm-10 input-group">
                                         <textarea rows="5" name="comment" placeholder="指导意见" class="col-sm-12"></textarea>
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                            <button type="button" class="btn btn-primary" id="audit-project-btn-agree">同意</button>
                            <button type="button" class="btn btn-primary" id="audit-project-btn-disAgree">不同意</button>
                        </div>
                    </div>
                    <!-- /.modal-content -->
                </div>
                <!-- /.modal-dialog -->
            </div>
            <!-- /.modal -->
            
            
            
            
            <!-- 生成阶段项目成果 -->
            <div class="modal fade in" id="stepDocCfgMtpModen"><!-- class="modal fade" 添加效果 -->                	
                <div class="modal-dialog">
                    <div class="modal-content">
                    	<!-- 设置隐藏的项目id -->
                    	<input type="hidden" id="saveCfgStepId">
                    	<input type="hidden" id="saveCfgStepName">
                    	<input type="hidden" id="checkCloseNumber">
                        <div class="modal-header">
                            <button type="button" class="close deleteClear" data-dismiss="modal" aria-hidden="true">×</button>
                            <h4 class="modal-title">生成阶段成果</h4>
                        </div>
                        <div class="row row-content">
	                        <div class="modal-body col-xs-6 left">  
	                        	<div>
	                        		&nbsp;
	                        	</div>
	                        	<div>
	                        		&nbsp;
	                        	</div>
	                        	<div>
	                        		<span>阶段任务 </span>
	                        	</div>
								<ul id="treeLeft" class="ztree">								
									
								</ul>
	                        </div>  
	                        <div class="modal-body col-xs-6 right"> 
		                         <a href="#" id="treeRightAdd" >新增主目录</a> 
		                         <a href="#" id="treeRightClear" >清除选中</a> 
		                         <a href="#" id="combineSelectedWord" >纳入成果文档</a> 
		                        <div id="stepProject">
		                       
		                         </div>     
		                         <div id="stepFolderName">
		                         </div>                                  
								<ul id="treeRight" class="ztree" >									
									
								</ul>
	                        </div>                
                        </div>   
                         <div class="modal-footer">
                             <button type="button" class="btn btn-default deleteClear" data-dismiss="modal">关闭</button>
   							<button type="button" class="btn btn-primary" id="saveTaskProjectDoc" value="" >文件归档</button>
                        </div>                    
                    </div>
                  
                    <!-- /.modal-content -->
                </div>
                <!-- /.modal-dialog -->
            </div>
            <!-- /.modal -->

			<!-- 任务详情模板 -->
			<jsp:include page="taskEditModel.jsp"></jsp:include>
			
			

        </div>
    </div>
	
	<jsp:include page="projectMember.jsp"></jsp:include>
	
	<jsp:include page="stepTemplate.jsp"></jsp:include>
	
	<jsp:include page="submitMember.jsp"></jsp:include>
 
<!-- 阶段模板 -->
<script id="stepMtp" type="x-tmpl-mustache">
	{{#data}}
	<div class="u-step" id="step-wrap-{{uuid}}" status="{{status}}">
		<div class="widget-box transparent">
			<div class="widget-header {{#isStartingStep}}bg-white{{/isStartingStep}}">
				<h4>{{stepName}}</h4>
				<div class="widget-toolbar "  >
					
						{{#isStartingStep}}
					 	    <a href="#" class="stepDocCfg step-btn-control" data-action="settings" key="{{uuid}}" stepName="{{stepName}}" title="生成阶段成果">
							    <i class="icon-hdd bigger-160"></i>
						    </a>
							<a href="#" data-action="" class="step-btn-complete step-btn-control" key="{{uuid}}" title="进入下阶段">
								<i class="icon-share-alt"></i>
							</a>
						{{/isStartingStep}}
					
					 	
						 	<a href="#" class="step-btn-edit " data-action="settings" stepName="{{stepName}}" key="{{uuid}}" title="修改" startDate="{{startDate}}" endDate="{{endDate}}">
								<i class="icon-edit"></i>
							</a>
					 	<a href="#" class="red step-btn-delete " data-action="settings" key="{{uuid}}" title="删除">
							<i class="icon-remove"></i>
						</a>
					
				</div>
			</div>
			<div class="widget-body thin-scroll">
				<div class="widget-main">
					<ul class="item-list" id="step-wrap-ul-{{uuid}}">
						{{#isCompleteStep}}
						<a class="btn-ace task-add-span task-btn-control" href="#" key="{{uuid}}"><i class="icon-plus"></i> 添加任务</a>
						{{/isCompleteStep}}
						{{#taskList}}
							{{> taskItemLink}}
						{{/taskList}}
					</ul>
				</div>
			</div>
		</div>
	</div>
	{{/data}}
</script>

<!-- 任务项模板 -->
<script id="taskItemMtp" type="x-tmpl-mustache">
	{{#data}}
		{{> taskItemLink}}
	{{/data}}
</script>
<!-- 任务项公用模板 -->
<script id="taskItemLinkMtp" type="x-tmpl-mustache">
	<li class="item-green clearfix task-item" id="task-item-panel-{{uuid}}" empNo="{{empNo}}">
		<div class="item-list-status"></div>
		<label class="inline">
			<span class="lbl">{{taskName}}</span>
		</label>
		<div class="pull-right action-buttons ">
			<a href="#" class="red item-btn-delete task-btn-control"  key="{{uuid}}">
				<i class="icon-trash bigger-130"></i>
			</a>
			<span class="vbar"></span>
			<a href="#" class="blue item-btn-edit " key="{{uuid}}">
				<i class="icon-pencil bigger-130"></i>
			</a>
			<%--
			<span class="vbar"></span>
			<a href="#" class="blue item-btn-view" key="{{uuid}}">
				<i class="icon-eye-open bigger-130"></i>
			</a>
			--%>
			<span class="vbar"></span>
		</div>
		<div class="taskiteminfo">
			<span><i class="icon-user"> {{empNames}}</i></span>
			<span><i class="icon-time"> {{endDateFormat}}</i></span>
			<span class="pull-right {{taskStatusStyle}}"><i class="icon-tags"></i> {{taskStatusName}}</span>
		</div>
	</li>
</script>




<!-- 任务新增模板 -->
<script id="taskAddMtp" type="x-tmpl-mustache">
	<li class="item-task-add clearfix" id="task-wrap-{{stepId}}">
		<form class="form-horizontal" role="form" id="task-save-form">
			<div class="row">
				<div class="col-sm-12 f-mb10">
					<input type="hidden" name="uuid"/>
					<input type="hidden" name="prjId"  value="{{prjId}}"/>	  {{!prjId jsp页面全局变量}}
					<input type="hidden" name="stepId" value="{{stepId}}"/>
					<input type="hidden" name="empNo"/>
					<input type="hidden" name="endDate"/>
					<input type="text" name="taskName" placeholder="任务名(最长13个字符)" class="col-sm-12" data-bv-notempty
											data-bv-notempty-message="任务名称必填" maxlength="13"/>
				</div>
				<div class="col-sm-12 f-mb10" id="divTaskType">
				</div>
				<div class="col-sm-12 f-mb10">
					<div class="inline position-relative">
						<a href="#" class="user-title-label dropdown-toggle emp-dropdown-toggle" data-toggle="dropdown">
							<i class="icon-user orange bigger-130"></i>
							<span>选择人员..</span>
						</a>
						<ul class="align-left dropdown-menu dropdown-caret dropdown-lighter">
							{{>taskMemberListMtp}}
						</ul>
					</div>
				</div>
					<div class="col-sm-12 f-mb10">
						<textarea class="form-control limited" name="depict" placeholder="描述" maxlength="200"></textarea>
					</div>
					<div class="col-sm-12 f-mb10 clearfix">
						<button type="button" class="btn btn-primary submit-handler pull-right" data-toggle="button" id="task-btn-save">创建</button>
						<button type="button" class="btn btn-link cancel-handler pull-right" data-toggle="button" id="task-btn-cancle">取消</button>
					</div>
				</div> 
			</div> 
		</form>
	</li>
</script>



<!-- 任务成员列表模板 -->
<script id="taskMemberListMtp" type="x-tmpl-mustache">
		<li class="dropdown-header"> 成员列表 </li>
		{{#memberArray}}
			<li>	
				<a>					
					<i class="icon-circle green"></i>					
					<span class="green" value="{{empNo}}">{{empName}}</span>
				</a>					
			</li>
		{{/memberArray}}
</script>


<!-- 项目名称 -->
<script id="showStepProject" type="x-tmpl-mustache">

		<i class="icon-folder-open-alt icon-fixed-width bigger-150"></i>
		<span>{{prjName}}</span>
 		<a href="#" id="updateProjectName" key="{{uuid}}" prjName="{{prjName}}">修改</a> 
</script>


<!-- 修改页面项目名称显示框 -->
<script id="showUpdateProjectName" type="x-tmpl-mustache">
	<i class="icon-folder-open-alt icon-fixed-width bigger-150"></i>
	项目名称<input type="text" id="showUpdatePrjName"   value="{{prjName}}"/>
	
	<a class="red saveUpdateProjectName"  data-action="settings" href="#" key="{{prjId}}">
		<i class="icon-ok bigger-110 red"></i>
	</a>	
	<a class="green cancelUpdatePrjName" data-action="settings" href="#" key="{{prjId}}" prjName="{{prjName}}">
		<i class="icon-remove bigger-110"></i>
	</a>		

</script>




<!-- 阶段文件夹 -->
<script id="showStepfolder" type="x-tmpl-mustache">
	
		 &nbsp; &nbsp; &nbsp; &nbsp;
		<i class="icon-folder-open-alt icon-fixed-width bigger-150"></i>
		<span id="{{stepId}}">{{folderName}}</span>
		<a href="#" id="showUpdateStepFolderName" key="{{uuid}}" folderName="{{folderName}}" stepId="{{stepId}}">修改</a> 
</script>

<!-- 修改页面项目某个阶段的显示框 -->
<script id="showUpdateStep" type="x-tmpl-mustache">
	 &nbsp; &nbsp; &nbsp; &nbsp;
	<i class="icon-folder-open-alt icon-fixed-width bigger-150"></i>
	阶段名称<input type="text" id="showUpdateFolderName"   value="{{folderName}}"/>
	
	<a class="red saveUpdateStepFolderName"  data-action="settings" href="#" key="{{uuid}}" stepId="{{stepId}}">
		<i class="icon-ok bigger-110 red"></i>
	</a>	
	<a class="green cancelUpdateStepFolderName" data-action="settings" href="#" key="{{uuid}}" folderName="{{folderName}}" stepId="{{stepId}}">
		<i class="icon-remove bigger-110"></i>
	</a>		

</script>




<script type="text/javascript" src="stepCfg.js"></script>
<script type="text/javascript" src="comments.js"></script>
<script type="text/javascript" src="taskEditModel.js"></script>
<script type="text/javascript" src="projectMember.js"></script>
<script type="text/javascript" src="stepTemplate.js"></script>
<script type="text/javascript" src="${ctx}/static/component/ztree/js/jquery.ztree.core-3.5.js"></script>
<script type="text/javascript" src="${ctx}/static/component/ztree/js/jquery.ztree.excheck-3.5.js"></script>
<script type="text/javascript" src="${ctx}/static/component/ztree/js/jquery.ztree.exedit-3.5.js"></script>
	 
<span style="display:none;">
	<div id="tagsSelect">
		<tags:select type="pmTaskType" name="taskType" id="taskTypeHidden" hasBlank="true" required="required"></tags:select>
	</div>
</span>
</body>

